const app = getApp();

Page({
  data: {
    customBar:app.globalData.CustomBar,
    tab:0,
    current:0,
    title:[
      "سەھەر ئۈندىدار ئەپچىسى",
      "تۈرلەر",
      "يوللاش",
      "مال ھارۋىسى",
      "مېنىڭ",
    ],
  },

  onLoad: function (options) {

  },

  onShow: function () {

  },

  changeTab:function(e){
    console.log(e);
    let current = e.detail.current;
    let tab = e.currentTarget.dataset.tab;
    if(tab==null){
      tab = current;
    }
    this.setData({
      tab:tab,
      current:tab,
    })
  },

  
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})